﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;

using BusinessObjects.BusinessRules;

namespace BusinessObjects
{
    /// <summary>
    /// Class that holds information about a product category.
    /// </summary>
    /// <remarks>
    /// Enterprise Design Pattern: Domain Model, Identity Field.
    /// 
    /// This is where your business logic resides. In this example there are none.
    /// Another place for business logic and business rules is in the Facade.  
    /// For an example see CustomerFacade in the Facade layer.
    /// 
    /// The Domain Model Design Pattern states that domain objects incorporate 
    /// both behavior and data. Behavior may include simple or complex business logic.
    /// 
    /// The Identity Field Design Pattern saves the ID field in an object to maintain
    /// identity between an in-memory business object and that database rows.
    /// </remarks>
    public class TrafficType : BusinessObject
    {
        /// <summary>
        /// Default constructor. Establishes simple business rules.
        /// </summary>
        public TrafficType()
        {

        }

        public TrafficType(int trafficTypeId, string description)
            : this()
        {
            TrafficTypeId = trafficTypeId;
            Description = description;
        }

        /// <summary>
        /// Gets or sets unique category identifier.
        /// The Identity Field Design Pattern. 
        /// </summary>
        public int TrafficTypeId { get; set; }

        /// <summary>
        /// Gets or sets the ProvinceName.
        /// </summary>
        public string Description { get; set; }


    }
}
